import 'package:fluro/fluro.dart';
import 'package:common/module/route_entry.dart';
import 'package:common/common.dart';

abstract class GlobalRouterManager {
  static FluroRouter _router = FluroRouter();

  static FluroRouter get router => _router;

  static registerRoutes(Iterable<RouteEntry> entries) {
    if(entries!=null && entries.isNotEmpty){
      entries.forEach((element) => _router.define(element.name,
          handler: element.handler, transitionType: element.transitionType));
    }

  }
}
